import { Hotel } from '@/api/hotel/types'
import request from '@/config/axios'

export const getAdminTotalApi = (): Promise<IResponse> => {
  return request.get({ url: '/dashboard/admin/total' })
}

export const getOfflineHotelApi = (): Promise<IResponse<Hotel[]>> => {
  return request.get({ url: '/dashboard/admin/offline-hotels' })
}

export const getMemberWeeklyConsumptionApi = (): Promise<IResponse> => {
  return request.get({ url: '/dashboard/admin/weekly-consumption' })
}

export const getHotelSourceApi = (): Promise<IResponse> => {
  return request.get({ url: '/dashboard/admin/hotel-source' })
}
